#ifndef WS2812_H
#define WS2812_H
 
#include "string.h"
#include "main.h"
#include "spi.h"
#include "math.h"
 
#define	WS2812_0	0x80
#define	WS2812_1	0xF0
#define	WS2812_RST	0x00
#define LED_NUMS   	60
#define RGB_BIT   	24
 
typedef struct
{
	uint8_t R;
	uint8_t G;
	uint8_t B;
}LEDType;
 
 
/**
turn off all leds
*/
void WS2812_TurnOff();
void WS2812_Show_Wheel(uint32_t base_color);
void WS2812_Show_Wheel_Dual(uint32_t base_color);
void WS2812_Show_Wheel_Fade(uint32_t base_color);
void WS2812_Breathe(uint32_t base_color, uint8_t enable);
void WS2812_MeteorTrail(uint32_t meteor_color, uint32_t bg_color, uint8_t meteor_count) ;
void WS2812_Light(uint32_t color);
void WS2812_SequentialLight(uint32_t color, uint8_t reset);
void WS2812_Update();
void ws2812b_b(uint32_t color);
#endif